package com.financing.common;
import java.util.Map;

import com.financing.model.Data;
import com.financing.util.Str;

public class DICT {  
	
	public final static Map<String, String> ROLE = Data.putStr(
		"admin","管理员","agent","客服","agent_manager","客服主管","product","营销管理","agent_leader","客服组长","assets_create","资产发布","assets_first","资产一审","assets_second","资产二审","none","无角色");

	public final static Map<String, String> REPAY_TYPE = Data.putStr(
		"all","一次还本付息","interest","按月等额本息","schedule","按月还息到期还本","capital","按月等额本金");
	
	public static String role(String name){
		String val = ROLE.get(name);
		return Str.nb(val)?val:name;
	}
	
	public static String repayType(String name){
		String val = REPAY_TYPE.get(name);
		return Str.nb(val)?val:name;
	}
}    